package com.pantuo.sys.service;

import com.pantuo.common.utils.TableRequest;
import com.pantuo.sys.vo.UserPermissionVo;
import org.springframework.data.domain.PageImpl;

import java.util.Map;

public interface UserService {

    public Map<String, Object> login(Map<String, String> map);

    public void insertObject(Map<String, String> map, Integer[] permissionId_i);

    public void updatePwd(String username,
                          String usedPassword,
                          String newPassword1,
                          String newPassword2);


    public PageImpl<UserPermissionVo> findPageObjects(TableRequest request);

    public void deleteObject(Integer id);

    public void updateUser(Map<String, Object> userMap);

    public Map<String, Object> findUserAndPer(Integer id);

    //重置密码
    public void resetPwd(Integer id);

}
